package com.wr.io;

import java.io.InputStream;

/**
 * @author 王瑞
 * @Description :
 * @date 2020/1/29 - 16:25
 */
public class Resources {

    //根据配置文件的路径，将配置文件加载到字节输入流存储到内存中方便使用
    public static InputStream getResourceAsStream(String path){
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }
}

